#include "chat_widget.h"
#include "tcp_client.h"

ChatWidget::ChatWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ChatWidget)
{
    ui->setupUi(this);

}

ChatWidget::~ChatWidget()
{
    delete ui;
}

void ChatWidget::setTcpClient(std::shared_ptr<tcp_client> clientPtr)
{
    clientPtr_ = clientPtr;
}